package com.front.managementfront.driver.entity;

import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 证件照
 * </p>
 *
 * @author yck
 * @since 2021-11-19
 */
public class CertificateImg extends Model<CertificateImg> {

    private static final long serialVersionUID = 1L;

    private String id;
    /**
     * 用户id
     */
    private String userId;
    /**
     * 证件地址
     */
    private String cardPath;
    /**
     * 自动审核通过状态（0:默认；1：自动审核通过2：自动审核未通过）
     */
    private Integer checkStatus;
    /**
     * 证件类型（idCardPath：身份证；backIdCardPath：身份证背面；driverLicenseHomePath：用户驾驶证；driverLicenseSubPath：用户驾驶证副业）
     */
    private String certificateType;
    private String carId;
    private String createBy;
    private LocalDateTime createTime;
    private Integer delFlag;
    private String updateBy;
    private LocalDateTime updateTime;

    public String getCarId() {
        return carId;
    }

    public void setCarId(String carId) {
        this.carId = carId;
    }

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getCardPath() {
        return cardPath;
    }

    public void setCardPath(String cardPath) {
        this.cardPath = cardPath;
    }

    public Integer getCheckStatus() {
        return checkStatus;
    }

    public void setCheckStatus(Integer checkStatus) {
        this.checkStatus = checkStatus;
    }

    public String getCertificateType() {
        return certificateType;
    }

    public void setCertificateType(String certificateType) {
        this.certificateType = certificateType;
    }

    public String getCreateBy() {
        return createBy;
    }

    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    public Integer getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(Integer delFlag) {
        this.delFlag = delFlag;
    }

    public String getUpdateBy() {
        return updateBy;
    }

    public void setUpdateBy(String updateBy) {
        this.updateBy = updateBy;
    }

    public LocalDateTime getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(LocalDateTime updateTime) {
        this.updateTime = updateTime;
    }

    public static final String ID = "id";

    public static final String USER_ID = "user_id";

    public static final String CARD_PATH = "card_path";

    public static final String CHECK_STATUS = "check_status";

    public static final String CERTIFICATE_TYPE = "certificate_type";

    public static final String CREATE_BY = "create_by";

    public static final String CREATE_TIME = "create_time";

    public static final String DEL_FLAG = "del_flag";

    public static final String UPDATE_BY = "update_by";

    public static final String UPDATE_TIME = "update_time";

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "CertificateImg{" +
                ", id=" + id +
                ", userId=" + userId +
                ", cardPath=" + cardPath +
                ", checkStatus=" + checkStatus +
                ", certificateType=" + certificateType +
                ", createBy=" + createBy +
                ", createTime=" + createTime +
                ", delFlag=" + delFlag +
                ", updateBy=" + updateBy +
                ", updateTime=" + updateTime +
                "}";
    }
}
